package com.ardf.service;

import com.ardf.entity.Competition;
import com.fazecast.jSerialComm.SerialPort;
import org.springframework.web.socket.WebSocketSession;

import java.util.List;

public interface CardPortService {
    List<SerialPort> discoverSerialPort();

    boolean closeSerialPort(SerialPort port);

    String openSerialPort(CardWebSocketService webSocketService,SerialPort port, WebSocketSession session,ICardService cardService,Integer pageSize,Integer pageNum,Long unitId,Long competitionId);

    String openSerialReplacePort(CardWebSocketService webSocketService,SerialPort port, WebSocketSession session,ICardService cardService,IAthleteService athleteService,Long competitionId,Long athleteId);

    //录入成绩
    String openSerialGradePort(CardWebSocketService webSocketService, SerialPort port, WebSocketSession session, ICardService cardService, IGradeService gradeService, IDetailsService detailsService, IAthleteTeamService teamService, IBatchService batchService, Long projectId, Boolean isRelay, Long competitionId, Competition competition, String project);


}
